package cdc.okhttp.demo;



import okhttp3.OkHttpClient;
import okhttp3.Request;

public abstract class OKHttpRequest {
	
	protected OkHttpClient client = new OkHttpClient();
		
	protected Request restRequest(String url,String ... strings) {
		int length=strings.length;
		String temp="";
		for (String string : strings) {
			temp=temp+string+"/";
		}
		url=length==0 ? url :url+temp;
		Request request = new Request.Builder()
		        .url(url)
		        .build();
		return request;
	}
	
	
	
	public abstract void request();
	
	public abstract void requestId(String id);
	

}
